Interface IWorldGenRegistry

All Known Implementing Classes:
WorldGenRegistryImpl

public interface IWorldGenRegistry
Use to register world generation and block drops Note: This info wil only be used if there is no DIY data present
  • Method Details

    • register

      void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, boolean silktouch, LootDrop... drops)
      Register a ItemStack to be shown in the WorldGen View
      Parameters:
      block - the Block as an ItemStack
      distribution - the DistributionBase use DistributionHelpers to create it
      restriction - any Restrictions
      silktouch - true if this block can only be harvested with silktouch
      drops - the list of possible LootDrops this has
    • register

      void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, LootDrop... drops)
    • register

      void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, boolean silktouch, LootDrop... drops)
    • register

      void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, LootDrop... drops)
    • registerDrops

      void registerDrops(@Nonnull net.minecraft.world.item.ItemStack block, LootDrop... drops)
      Register extra drops to existing blocks
      Parameters:
      block - the Block as an ItemStack
      drops - the list of possible LootDrops that should be added